{% extends "base.html" %}
{% block content%}
{% if entries %}

{% for entry in entries %}

			<div class="post" id="post-{{entry.key}}">
				<h2><a href="{{ entry.Link_url }}" rel="bookmark" title="Permanent Link to {{entry.title}}">{{entry.title}}</a></h2>
				<ul class="post_metadata">
					<li class="post_date">{{entry.date|datetz:"F jS, Y"}}</li>
					<li class="post_comments"><a href="{{entry.Link_url|escape}}#comments">{{entry.commentcount}} 条评论</a></li>
				</ul>
				<div class="entry">
					{{entry.content_excerpt}}
				</div>

				<div class="post_tags">
                {% if entry.tags%}
                <ul>{%for tag in entry.tags%}
									<li><a href="{{tag.Tagurl|urlencode}}">{{tag}}</a>&nbsp;</li>{%endfor%}</ul>
							{%endif%}
                </div>
			</div>

		{% endfor %}

		<div class="navigation">
		{% if pager.prev %}
			<div class="alignleft"><a href="{{pager.prev}}" >&laquo;Older Entries</a></div>
        {% endif %}
        {% if pager.next %}
			<div class="alignright"><a href="{{pager.next}}" >Newer Entries&raquo;</a></div>
        {% endif %}
			
		</div>

	{% else %}

		<h2 class="center">Not Found</h2>
		<p class="center">Sorry, but you are looking for something that isn't here.</p>

	{% endif %}

	</div>

{% include "sidebar.html" %}

{% endblock %}